import time

from ranzhiporductTest.caw.basepage import BasePage


class Addcustomer(BasePage):
    dw_khgl = "id = s-menu-1"
    dw_kh = "class name = active"
    dw_iframe = "id = iframe-1"
    dw_tjkh = "class name = btn.btn-primary"
    dw_name = "id = name"
    dw_contact = "id = contact"
    def addcustomer(self,):
        self.click_element(self.dw_khgl)
        self.click_element(self.dw_kh)
        self.click_element(self.dw_tjkh)
        self.switch_to_iframe(self.dw_iframe)
        #添加数据
        self.send_information(self.dw_name,name)
        self.send_information(self.dw_contact,contact)
